-- Comm of the zakidas
local unitName = "lordzak"

--TODO: Add blue NOTA Dgun.

local unitDef =
{
-- Internal settings
	Category = "LAND",
	ObjectName = "lordzak.s3o",
	script = "lordzak.lua",
	buildPic = "lz.png",
	hideDamage = true,
	showPlayerName = true,
	capturable = false,
	iconType = "corcommander",
-- Unit limitations and properties
	Description = "Commander of the Zakidas",
	MaxDamage = 10000,
	Name = "Lord Zakida",
	RadarDistance = 10,
	SightDistance = 400,
	Upright = 1,
	levelground = 1,
	idleAutoHeal = 1,
	commander = true,
	--cost
	buildCostMetal = 200,
	buildCostEnergy = 0,
	buildTime = 25,
	--economy
	EnergyStorage = 1000,
	EnergyUse = 0,
	MetalStorage = 1000,
	EnergyMake = 100,
	MakesMetal = 0,
	MetalMake = 5,
-- Movement and related
	Acceleration = 3.0,
	MaxVelocity = 3.0,
	BrakeRate = 3.0,
	FootprintX = 2,
	FootprintZ = 2,
	MovementClass = "Default2x2",
	TurnRate = 900,
	MaxSlope = 10,
	turnInPlace = true,
--Varius
	corpse = "CORCOM_DEAD",
--Cando
	canMove = true,
	canAttack = true,
	canFight = true,
	canPatrol = true,
	canGuard = true,
	canRepeat = true,
	canSelfDestruct = true,
	canRestore = true,
	canRepair = true,
	canReclaim = true,
	canResurrect = true,
	canCapture = true,
	canAssist = true,
	canBeAssisted = true,
	canSelfRepair = true,

-- Building
	Builder = true,
	Reclaimable = true,
	ShowNanoSpray = true,
	buildDistance = 300.0,
	buildRange3D = true,
	workerTime = 1,
	repairSpeed = 1,
	reclaimSpeed = 100,
	resurrectSpeed = 1,
	captureSpeed = 2,
	terraformSpeed = 1,
	buildoptions = 
	{
		"lzmex",
	},
	
	weapons = {
		--[1]={name  = "DCLAW1", --onlyTargetCategory = [[LAND]],
		[1]={name  = "DCLAW1",},
	},
}

return lowerkeys({ [unitName] = unitDef })
